
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGPointLight.h>
#include <OpenSG/OSGPointLightBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_PointLight_dump_overloads_0_2, dump, 0, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_PointLight()
{
    scope* osg_PointLightBase_scope = new scope(
    class_< osg::PointLightBase, bases< osg::Light > , boost::noncopyable >("PointLightBase", no_init)
//        .def_readonly("PositionFieldMask", &osg::PointLightBase::PositionFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::PointLightBase::MTInfluenceMask)
        .def("getClassType", &osg::PointLightBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::PointLightBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::PointLightBase::*)() )&osg::PointLightBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::PointLightBase::*)() const)&osg::PointLightBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::PointLightBase::getContainerSize)
        //.def("getPosition", (osg::Pnt3f& (osg::PointLightBase::*)() )&osg::PointLightBase::getPosition, return_value_policy< copy_const_reference >())
        .def("getPosition", (const osg::Pnt3f& (osg::PointLightBase::*)() const)&osg::PointLightBase::getPosition, return_value_policy< copy_const_reference >())
        .def("setPosition", &osg::PointLightBase::setPosition)
        .def("getBinSize", &osg::PointLightBase::getBinSize)
        .def("copyToBin", &osg::PointLightBase::copyToBin)
        .def("copyFromBin", &osg::PointLightBase::copyFromBin)
        .def("create", &osg::PointLightBase::create)
        .def("createEmpty", &osg::PointLightBase::createEmpty)
        .def("shallowCopy", &osg::PointLightBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("NextFieldId") = (int)osg::PointLightBase::NextFieldId;
    scope().attr("PositionFieldId") = (int)osg::PointLightBase::PositionFieldId;

    delete osg_PointLightBase_scope;

    class_< osg::PointLight, bases< osg::PointLightBase > , boost::noncopyable, osg::PointLightRefPtr >("PointLight", no_init)
        //.def_readwrite("statNPointLights", &osg::PointLight::statNPointLights)
        .def("setPosition", (void (osg::PointLight::*)(osg::Real32, osg::Real32, osg::Real32) )&osg::PointLight::setPosition)
        .def("setPosition", (void (osg::PointLight::*)(const osg::Pnt3f&) )&osg::PointLight::setPosition)
        .def("setAttenuation", &osg::PointLight::setAttenuation)
        .def("makeChunk", &osg::PointLight::makeChunk)
        .def("changed", &osg::PointLight::changed)
        .def("dump", &osg::PointLight::dump, osg_PointLight_dump_overloads_0_2())
    ;


    register_ptr_to_python<osg::PointLightPtr>();
    implicitly_convertible<osg::PointLightRefPtr, osg::PointLightPtr>();
    implicitly_convertible<osg::PointLightPtr, osg::LightPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::PointLightPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::PointLightPtr>);
}

